package com.bupt.dao;

import com.bupt.bean.DeviceType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface DeviceTypeRepository extends JpaRepository<DeviceType,String>, JpaSpecificationExecutor<DeviceType> {
    DeviceType findByDeviceTypeName(String deviceTypeName);

    DeviceType findByDeviceTypeId(Integer deviceTypeId);

    void deleteByDeviceTypeId(Integer deviceTypeId);
}
